<template>
  <div class="home1">
    <div class="laba ct">
      <img src="../../assets/3.png" alt="">
      <div class="labatext" v-html="notices?.[0]?.bulletinTitle">
      </div>
    </div>
    <div class="banner ct">
      <div class="b-img">
        <div class="carousel-container" @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave">
          <div class="carousel-wrapper" :style="{ transform: `translateX(-${currentIndex * 100}%)` }">
            <div class="carousel-item" v-for="(item, index) in bannerList" :key="index">
              <img :src="item.bannerUrl" alt="">
              <div class="b-txt">
                {{ item.title }}
              </div>
            </div>
          </div>
          <!-- 指示器 -->
          <div class="carousel-indicators">
            <span 
              v-for="(item, index) in bannerList" 
              :key="index"
              :class="{ active: currentIndex === index }"
              @click="setCurrentIndex(index)"
            ></span>
          </div>
          <!-- 切换按钮 -->
          <div class="carousel-btn prev" @click="prevSlide">
            <span>&lt;</span>
          </div>
          <div class="carousel-btn next" @click="nextSlide">
            <span>&gt;</span>
          </div>
        </div>
      </div>
      <div class="b-tab">

          <div class="new-info">
            <div class="info-item cp"  @click="to('/job/jobdetail/'+item.workId+'?type=job')"
               v-for="item in works">
              <div class="info-i-t">
                <div class="i-l">{{ item.workTitle }}</div>
                <div class="i-r">{{ item.createdTime?.slice?.(0,11) }}</div>
              </div>
            </div>
          </div>

        <!-- <el-tabs v-model="activeName" class="demo-tabs">
          <el-tab-pane label="新闻动态" name="first">
            <div class="tab-con">
              <div class="con-item cp"
              @click="to('/job/jobdetail/'+item.workId+'?type=job')"
               v-for="item in works">
                <div class="item-time snp1">{{ item.createdTime?.slice?.(0,11) }}</div>
                <div class="item-c snp1">{{ item.workTitle }}</div>
              </div>
            </div>
          </el-tab-pane> -->
          <!-- <el-tab-pane label="通知公告" name="second">
            <div class="tab-con">
              <div class="con-item cp" 
              @click="to('/job/jobdetail/'+item.bulletinId+'?type=bulletin')" v-for="item in notices">
                <div class="item-time snp1">{{ item.createdTime?.slice?.(0,11) }}</div>
                <div class="item-c snp1">{{ item.bulletinTitle }}</div>
              </div>
            </div>
          </el-tab-pane> -->
          <!-- <el-tab-pane label="政策法规" name="third">
            <div class="tab-con">
              <div class="con-item cp" 
              @click="to('/job/jobdetail/'+item.policiesId+'?type=policy')"v-for="item in policies">
                <div class="item-time snp1">{{ item.createdTime?.slice?.(0,11) }}</div>
                <div class="item-c snp1">{{ item.policiesTitle }}</div>
              </div>
            </div>
          </el-tab-pane> -->
        <!-- </el-tabs> -->
        <div class="tab-more" @click="to('/job')">>> 查看更多</div>
      </div>
    </div>
    <!-- <div class="img-nav ct">
      <div class="kxyj">
        <div>科学研究</div>
        <div class="more" @click="to('/job/jobsciencemore')">>> 查看更多</div>
      </div>
      <div class="nswd" @click="to('/nsqa')">
        <div>农事问答</div>
        <div class="more">>> 查看更多</div>
      </div>
    </div> -->
    <!-- 站院地图 -->
    <div class="c-map">
      <div class="ct">
        <div class="map-t ">
          <div class="map-t-l">
            <img src="../../assets/9.png" alt="">
            <div class="map-t-t">站院地图</div>
          </div>
          <img class="map-t-r" src="../../assets/8.png" alt="">
        </div>
        <div class="map-c">
          <div class="map-map">
            <div ref="eChartsRef" className="chart"></div>
          </div>
          <div class="map-tab">
            <div class="tab-head" :class="tab2=='KEJI'?'gl':''">
              <div class="tab-hitem" @click="getPageCourtyard('JIDI')">
                农技推广站
              </div>
              <div class="tab-hitem cp" @click="getPageCourtyard('KEJI')">
                <img v-if="tab2=='KEJI'" class="hitem-img cp" src="../../assets/12.jpeg" alt="">
                站院联建示范基地
              </div>
              <!-- <div class="tab-hitem cp" >
                <img class="hitem-img cp" src="../../assets/12.jpeg" alt="">
                站院联建示范基地
              </div>  -->

            </div>
            <div class="tab-content">
              <el-input
                style="width: 240px"
                size="large"
                :suffix-icon="Search"
                placeholder="输入站院名称"
                class="tab-input"
              />
              <div class="tab-list">
                <el-popover 
                 :width="300"
                  popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;"
                  popper-class="popper"
                  placement="right"
                  trigger="hover"
                  :show-arrow="false"	
                  :offset="40"
                  :show-after="200"

                   v-for="item in yards">
                  <template #reference>
                    <div class="tab-item" @click="toto('/newyardhome?yardId='+item.courtyardId)">
                      <div class="item-top">
                        <div class="top-tit">
                          {{ item.courtyardName }}
                        </div>
                        <div class="top-sta">
                          已开放
                        </div>
                      </div>
                      <div class="item-bottom">
                        <div class="bottom-name">
                          {{ item.trainingUnits }}
                        </div>
                        <div class="bottom-city">
                          {{ item.area }}
                        </div>
                      </div>
                    </div>
                  </template>
                  <template #default>
                    <div class="pop-content" @click="toto('/newyardhome?yardId='+item.courtyardId)">
                      <img :src="item.photo" alt="">
                      <div class="tit">
                        <div class="tit-l">{{ item.courtyardName }}</div>
                        <div class="tit-r">已开放</div>
                      </div>
                      <div class="tit-text">
                        培养单位：{{ item.trainingUnits }}
                      </div>
                      <div class="tit-text">
                        共建单位：{{ item.coUnit }}
                      </div>
                      <div class="tit-text tit-texts">
                        <div>专家： {{ item.manager }}</div>
                        <div>所属地区：{{ item.area }}</div>
                      </div>
                      <div class="tit-text">
                        主要农产品：{{ item.agriculturalProducts }}
                      </div>
                    </div>
                  </template>
                </el-popover>
              </div>
            </div>
          </div>
        </div>
        <div class="map-b" @click="to('/map')">
          >> 查看更多
        </div>
      </div>
    </div>
    <!-- 专家队伍 -->
    <div class="zjteams ct zjteams1">
      <div class="team-head">
        <div class="t-head-l">
          <img src="../../assets/14.png" alt="">
          <div class="h-head-text">驻站专家</div>
        </div>
        <div class="t-head-r">
          <img src="../../assets/15.png" alt="">
          <div class="t-head-rtext" @click="to('/specialist')"> >> 查看更多</div>
        </div>
      </div>
      <div class="team-content">
        <div class="team-item cp" @click="to(`specialist/specialistDetail/${item.professorId}`)" v-for="item in professors.list">
          <img :src="item.photo" alt="">
          <div class="team-img-info">
            <div class="ingo-name">{{ item.name }}</div>
            <div class="info-dw">{{ item.position }}</div>
          </div>
        </div>
      </div>
      <div class="team-page">
        <!-- <el-pagination
          :current-page="1"
          :page-size="8"
          layout="prev, pager, next"
          :total="professors.total"
          prev-text="上一页"
          next-text="下一页"
          background
          @current-change="handleCurrentChange"
        /> -->
      </div>
    </div>
    <!-- 站院日志 -->
    <div class="zjteams ct zyrz">
      <div class="team-head">
        <div class="t-head-l">
          <img src="../../assets/17.png" alt="">
          <div class="h-head-text">站院日志</div>
        </div>
        <div class="t-head-r">
          <img src="../../assets/18.png" alt="">
          <div class="t-head-rtext" @click="to('/job/joblogmore')"> >> 查看更多</div>
        </div>
      </div>
      <div class="zyrz-content">
        <div class="zyrz-item cp">
          <div class="item-info" @click="to2(sitem.logId)" v-for="sitem in yardLogs.slice(0,3)">
            <div class="sitem-t">{{ sitem.logTitle }}</div>
            <div class="sitem-b" v-html="sitem.logContent"></div>
          </div>
        </div>
        <div class="zyrz-item">
          <div class="item-info cp" @click="to2(sitem.logId)" v-for="sitem in yardLogs.slice(3,6)">
            <div class="sitem-t">{{ sitem.logTitle }}</div>
            <div class="sitem-b" v-html="sitem.logContent"></div>
          </div>
        </div>
      </div>
    </div>
    <!-- 站院风采 -->
    <div class="zjteams ct zyfc">
      <div class="team-head">
        <div class="t-head-l">
          <img src="../../assets/19.png" alt="">
          <div class="h-head-text">站院风采</div>
        </div>
        <div class="t-head-r">
          <img src="../../assets/20.png" alt="">
          <div class="t-head-rtext" @click="to('/map')"> >> 查看更多</div>
        </div>
      </div>
      <div class="zyfc-content">
        <div class="marquee-container" @mouseenter="handleMarqueeMouseEnter" @mouseleave="handleMarqueeMouseLeave">
          <div class="marquee-wrapper" :style="{ transform: `translateX(-${scrollPosition}px)` }">
            <!-- 第一组图片 -->
            <div class="zyfc-item cp" @click="to3(item)" v-for="(item, index) in fengcais" :key="`first-${index}`">
              <img :src="item._photo" alt="">
              <div class="zyfc-info">{{ item.courtyardName }}</div>
            </div>
            <!-- 第二组图片（用于无缝循环） -->
            <div class="zyfc-item cp" @click="to3(item)" v-for="(item, index) in fengcais" :key="`second-${index}`">
              <img :src="item._photo" alt="">
              <div class="zyfc-info">{{ item.courtyardName }}</div>
            </div>
            <!-- 第三组图片（确保有足够的内容） -->
            <div class="zyfc-item cp" @click="to3(item)" v-for="(item, index) in fengcais" :key="`third-${index}`">
              <img :src="item._photo" alt="">
              <div class="zyfc-info">{{ item.courtyardName }}</div>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>
<script setup>
	import { useRouter } from 'vue-router'
  import { ref, onMounted, reactive, onUnmounted, watch } from 'vue';
	import { Search } from '@element-plus/icons-vue';
	import henanMap from '../../assets/henanMap.json';
	import * as eCharts from "echarts";
  import { pageBanner, pageBulletin, pagePoliciesRegulations, pageWorkState, pageCourtyard, pageProfessor, pageCourtyardLog, pageCourtyardMien, getCityMap } from '@/api/home';

  const tab2 = ref('KEJI'); // JIDI

  // 轮播图
  const bannerList = ref([]);
  const getPageBanners = async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 5, // 获取5张轮播图
        pageNum: 1,
      }
    }
    const ret = await pageBanner(params)
    bannerList.value = ret?.data?.list || [];
  }
  getPageBanners();

  // 新闻动态
  const works = ref([]);
  const getPageWorkState = async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 10,
        pageNum: 1,
      }
    }
    const ret = await pageWorkState(params)
    works.value = ret?.data?.list || [];
  }
  getPageWorkState()

  // 通知公告
  const notices = ref([]);
  const getPageBulletin = async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 10,
        pageNum: 1,
      }
    }
    const ret = await pageBulletin(params)
    notices.value = ret?.data?.list || [];
  }
  getPageBulletin();

  // 政策
  const policies = ref([]);
  const getPagePolicies = async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 10,
        pageNum: 1,
      }
    }
    const ret = await pagePoliciesRegulations(params)
    policies.value = ret?.data?.list || [];
  }
  getPagePolicies();

  // 科技小院
  const yards = ref([]);
  const getPageCourtyard = async(courtyardType) => {
    tab2.value = courtyardType;
    const params = {
      params: {
        status: true,
        courtyardType,
      },
      page: {
        pageSize: 10,
        pageNum: 1,
      }
    }
    const ret = await pageCourtyard(params)
    yards.value = ret?.data?.list || [];
  }
  getPageCourtyard('KEJI');

  // 专家
  const professors = reactive({
    list: [],
    page: 1,
    total: 0,
  })
  const getPageProfessor =  async(pageNum) => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 10,
        pageNum,
      }
    }
    const ret = await pageProfessor(params)
    professors.list = ret?.data?.list || [];
    professors.total = ret?.data?.pages;
  }
  const handleCurrentChange = (page) => {
    getPageProfessor(page)
  }
  getPageProfessor();

  // 站院日志
  const yardLogs = ref([]);
  const getPageyardLogs =  async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 10,
        pageNum: 1,
      }
    }
    const ret = await pageCourtyardLog(params)
    yardLogs.value = ret?.data?.list || [];
  }
  getPageyardLogs();

  // 站院风采
  const fengcais = ref([]);
  const getPageCourtyardMien =  async() => {
    const params = {
      params: {
        status: true,
      },
      page: {
        pageSize: 6,
        pageNum: 1,
      }
    }
    const ret = await pageCourtyardMien(params)
    try{
      ret?.data?.list.forEach(element => {
      if(element?.photo) {
        element._photo = JSON.parse(element?.photo)?.[0];
      }
    });
    }catch{

    }
    fengcais.value = ret?.data?.list || [];
  }
  getPageCourtyardMien();

  // 站院风采横向滚动相关
  const scrollPosition = ref(0);
  const scrollTimer = ref(null);
  const isScrolling = ref(true);

  // 启动横向滚动
  const startHorizontalScroll = () => {
    if (fengcais.value.length === 0) return;
    
    scrollTimer.value = setInterval(() => {
      if (isScrolling.value) {
        // 计算单个项目的宽度（包括间距）
        const itemWidth = 620; // 600px宽度 + 20px间距
        
        // 如果滚动到第一组末尾，重置到开始位置
        if (scrollPosition.value >= fengcais.value.length * itemWidth) {
          scrollPosition.value = 0;
        } else {
          scrollPosition.value += 2; // 每次移动2px，实现平滑滚动
        }
      }
    }, 50); // 每50ms移动一次，实现平滑效果
  };

  // 停止横向滚动
  const stopHorizontalScroll = () => {
    if (scrollTimer.value) {
      clearInterval(scrollTimer.value);
      scrollTimer.value = null;
    }
  };

  // 鼠标悬停时停止滚动
  const handleMouseEnter = () => {
    stopAutoScroll();
    isScrolling.value = false;
  };

  // 鼠标离开时恢复滚动
  const handleMouseLeave = () => {
    startAutoScroll();
    isScrolling.value = true;
  };

  // 监听fengcais变化，启动横向滚动
  watch(fengcais, (newList) => {
    if (newList.length > 0) {
      setTimeout(() => {
        startHorizontalScroll();
      }, 1000);
    }
  }, { immediate: true });

  // 轮播相关
  const currentIndex = ref(0);
  const carouselTimer = ref(null);

  // 自动轮播
  const startAutoScroll = () => {
    carouselTimer.value = setInterval(() => {
      nextSlide();
    }, 5000); // 每5秒切换一次
  };

  // 切换到上一张
  const prevSlide = () => {
    if (bannerList.value.length > 0) {
      currentIndex.value = (currentIndex.value - 1 + bannerList.value.length) % bannerList.value.length;
    }
  };

  // 切换到下一张
  const nextSlide = () => {
    if (bannerList.value.length > 0) {
      currentIndex.value = (currentIndex.value + 1) % bannerList.value.length;
    }
  };

  // 设置当前索引
  const setCurrentIndex = (index) => {
    currentIndex.value = index;
  };

  // 停止自动轮播
  const stopAutoScroll = () => {
    if (carouselTimer.value) {
      clearInterval(carouselTimer.value);
      carouselTimer.value = null;
    }
  };

	const router = useRouter()
	const eChartsRef = ref(null);

  const toto = (path) => {
    window.open(`/#${path}`)
	}
  
  const to = (path) => {
		router.push(path)
	}

  const to2 = (id) => {
    router.push(`/job/jobdetail1/${id}?type=yardlog`)
  }

  const to3 = (item) => {
    toto('/newyardhome?yardId='+item.courtyardId)
  }

  onMounted(() => {
		getMapCensusRegisterLocation1();
    // 等待数据加载完成后启动轮播
    // setTimeout(() => {
    //   if (bannerList.value.length > 0) {
    //     startAutoScroll();
    //   }
    // }, 1000);
	})

  onUnmounted(() => {
    stopAutoScroll();
    stopHorizontalScroll(); // 卸载时停止横向滚动
  });

  // 监听bannerList变化，启动轮播
  watch(bannerList, (newList) => {
    if (newList.length > 0) {
      setTimeout(() => {
        startAutoScroll();
      }, 1000);
    }
  }, { immediate: true });

  const activeName = ref('first');

	const getMapCensusRegisterLocation1 = () => {
    // let vData =[ {
    //   value: 20,
    //   name: '南阳市'
    // }];
    // const myChart = eCharts.init(eChartsRef.value);
    // myChart.clear();
    // mapFunction(vData,myChart);

		// const data = {
		// 	page: {
		// 	"pageNum": 0,
		// 	"pageSize": 0,
		// 	},
		// 	params: {
		// 	}
		// }
		getCityMap().then(res => {
			console.log('aqew123123',res)
			let vData = [];
      for (let item of Object.keys(res.data)) {
        let value = {value: res.data[item], name: item.trim()}
        vData.push(value)
      }
			// console.log('aqew1231223',vData)
			console.log('eChartsRef.value', eChartsRef.value)
			const myChart = eCharts.init(eChartsRef.value);
			myChart.clear();
			mapFunction(vData,myChart);
		})
	}

  // 地图
  const mapFunction = (vData,myChart) => {
    eCharts.registerMap('henan', JSON.stringify(henanMap));
    let map = {
      title: {text: "",},
      tooltip: { trigger: 'item' },
      visualMap: {
        show: false,
        text: ['多', '少'],
        realtime: false,
        calculable: true,
        inRange: {
          color: ['#56A669','#56A669', '#56A669','#56A669','#56A669','#56A669']
        }
      },
      series:[
        {
          name: '小院数量',
          type: "map",
          map: 'henan',
          data: vData,
          zoom: 1.2,
          label:{
            normal:{
              show:true,
              textStyle:{
                fontSize:10
              },
            },
          },
          emphasis:{// 对应的鼠标悬浮效果
            label:{
              textStyle:{color:"#FFFFFF"},
            },
            itemStyle:{
              areaColor:'#CCC'
            }
          },
        },
      ]
    }
    myChart.setOption(map);
  }

  // 鼠标悬停时停止滚动
  const handleMarqueeMouseEnter = () => {
    isScrolling.value = false;
  };

  // 鼠标离开时恢复滚动
  const handleMarqueeMouseLeave = () => {
    isScrolling.value = true;
  };


</script>
<style scoped lang="scss">
.home1 {
  flex: 1;
  width: 100%;
  .laba {
    height: 80px;
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #666;
    padding: 0 10%;
    img {
      width: 30px;
    }
    .labatext {
      padding-left: 20px;
    }
  }
  .banner {
    height: 505px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10%;
    .b-img {
      width: 800px;
      height: 500px;
      position: relative;
      img {
        height: 500px;
        width: 800px;
        // object-fit: contain;
        background-color: #f8f8f8;
      }
      .b-txt {
        width: 100%;
        height: 55px;
        position: absolute;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.4);
        color: #fff;
        font-size: 20px;
        display: flex;
        align-items: center;
        padding-left: 25px;
      }
      .carousel-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 10px;
        .carousel-wrapper {
          display: flex;
          height: 100%;
          transition: transform 0.5s ease-in-out;
        }
        .carousel-item {
          flex: 0 0 100%;
          height: 100%;
          position: relative;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
          .b-txt {
            width: 100%;
            height: 55px;
            position: absolute;
            bottom: 0;
            left: 0;
            background: rgba(0,0,0,0.4);
            color: #fff;
            font-size: 20px;
            display: flex;
            align-items: center;
            padding-left: 25px;
          }
        }
        .carousel-indicators {
          position: absolute;
          bottom: 80px;
          left: 50%;
          transform: translateX(-50%);
          display: flex;
          gap: 10px;
          z-index: 10;
          span {
            display: block;
            width: 12px;
            height: 12px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s ease;
            &.active {
              background-color: #fff;
            }
          }
        }
        .carousel-btn {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          width: 50px;
          height: 100px;
          background-color: rgba(0, 0, 0, 0.3);
          color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          z-index: 10;
          transition: background-color 0.3s ease;
          &:hover {
            background-color: rgba(0, 0, 0, 0.6);
          }
          &.prev {
            left: 0;
          }
          &.next {
            right: 0;
          }
          span {
            font-size: 30px;
            font-weight: bold;
          }
        }
      }
    }
    :deep(.el-tabs__header) {
      margin-bottom: 10px;
    }
    .new-info {
        flex: 1;
        margin-left: 20px;
        background-color: #fff;
        padding: 10px 10px;
        overflow: hidden;
        color: #777;
        .info-item {
          border-bottom: 2px solid #e5e5e5;
          cursor: pointer;
          &:last-child{
            border-bottom: 0 none;
          }
        }
        .info-i-t {
          font-size: 22px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 15px 0;
          .i-l {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }
          .i-r {
            margin-left: 30px;
            width: 150px;
            text-align: right;
          }
        }
      }
    .b-tab {
      // width: 635px;
      margin-left: 30px;
      flex: 1;
      height: 100%;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      .el-tab-pane {
        height: 100%;
        .tab-con {
          height: 100%;
          overflow: hidden auto;
          padding-left: 30px;
          .con-item {
            display: flex;
            align-items: center;
            // height: 35px;
            padding-left: 30px;
            font-size: 20px;
            color: #666;
            border-bottom: 1px solid #e5e5e5;
            padding: 10px 0;
          }
          .item-time {
            width: 140px;
          }
          .item-c {
            flex: 1;
            overflow: hidden;
            padding-right: 20px;
          }
        }
      }
      .demo-tabs {
        flex: 1;
        overflow: hidden scroll;
      }
      :deep(.el-tabs__nav-wrap){
        height: 65px;
        &::after {
          background-color: #888;
        }
        .el-tabs__nav-scroll {
          height: 100%;
        }
        .el-tabs__nav {
          height: 100%;
          padding-left: 30px;
          .el-tabs__item {
            height: 100%;
            padding: 0 30px;
            font-size: 24px;
            color: #666;
            font-weight: normal;
            &.is-active {
              color: #fff;
              background: url('../../assets/5.png') no-repeat center center / cover;
              border: 1px solid #999;
            }
          }
        }
      }
      .tab-more {
        height: 60px;
        width: 100%;
        color: #068043;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 30px;
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
      }
    }
  }
  .img-nav {
    height: 145px;
    display: flex;
    justify-content: space-between;
    font-size: 30px;
    color: #fff;
    padding: 0 10%;
    .more {
      cursor: pointer;
    }
    .kxyj {
      flex: 1;
      background: url('../../assets/6.png') no-repeat center / cover;
      display: flex;
      align-items: center;
      padding: 0 3% 0 5%;
      justify-content: space-between;
      margin-right: 20px;
      cursor: pointer;
    }
    .nswd {
      cursor: pointer;
      flex: 1;
      background: url('../../assets/7.png') no-repeat center / cover;
      display: flex;
      align-items: center;
      padding: 0 3% 0 5%;
      justify-content: space-between;
    }
  }
  .c-map {
    width: 100%;
    height: 1080px;
    background: url('../../assets/10.jpg') no-repeat top left / 100% 100%;
    .ct {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 0 10%;
    }
    .map-t {
      background: url(../../assets/13.png) no-repeat center center / cover;
      height: 190px;
      width: 100%;
      padding-left: 88px;
      display: flex;
      align-items: center;
      margin: 20px 0;
      .map-t-l {
        img {
          width: 85px;
        }
        .map-t-t {
          font-size: 48px;
          font-weight: 900;
          color: #000;
        }
      }
      .map-t-r {
        width: 110px;
        margin-left: 65px;
      }
    }
    .map-c {
      flex: 1;
      overflow: hidden;
      display: flex;
      padding-right: 20px;
      justify-content: space-between;
      width: 100%;
      .map-map {
        height: 100%;
        flex: 1;
        .chart {
          width: 100%;
          height: 100%;
        }
      }
      .map-tab {
        height: 100%;
        width: 25%;
        margin-left: 4%;
        display: flex;
        flex-direction: column;
        .tab-head {
          height: 100px;
          margin-bottom: 15px;
          border-radius: 10px;
          display: flex;
          align-items: center;
          background-color: #2fa962;
          background: url('../../assets/11.png') no-repeat center center / 100% 100%;
          // color: #333;
          transform: rotateY(180deg);
          .tab-hitem {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            font-size: 18px;
            height: 100%;
            border-radius: 10px;
            color: #fff;
            transform: rotateY(-180deg);

            &.gl {
              background-color: #2fa962;
            }
            .hitem-img {
              width: 50px;
              margin-bottom: 10px;
            }
            &:last-child {
              color: #333;
            }
          }
          &.gl {
            background-image: url(../../assets/23.png);
            .tab-hitem {
              color: #333;

            }
            .tab-hitem:last-child {
              color: #fff;
            }
          }
        }
        .tab-content {
          flex: 1;
          overflow: hidden auto;
          background-color: #2fa962;
          border-radius: 15px;
          padding: 20px 10px;
          font-size: 20px;
          .tab-input {
            height: 50px;
            width: 100% !important;
            :deep(.el-input__wrapper) {
              border-radius: 10px;
              font-size: 20px;
            }
          }

          .tab-item {
            width: 100%;
            height: 95px;
            background: #fff;
            margin-top: 10px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            .item-top {
              display: flex;
              align-items: center;
              justify-content: space-between;
              width: 100%;
              padding: 0 12px;
              color: #000;
              .top-tit {
                font-size: 20px;
                font-weight: bold;
                flex: 1;
              }
              .top-sta {
                width: 65px;
                height: 28px;
                border-radius: 15px;
                background-color: #068043;
                color: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
              }
            }
            .item-bottom {
              display: flex;
              align-items: center;
              justify-content: space-between;
              width: 100%;
              padding: 0 12px;
              margin-top: 10px;
              color: #333;
            }
          }
        }
      }
    }
    .map-b {
      width: 100%;
      height: 100px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      font-size: 24px;
      color: #666;
      cursor: pointer;
    }
  }
  .zjteams {
    width: 100%;
    padding: 0 10%;
    
    .team-head {
      background: url(../../assets/13.png) no-repeat center center / cover;
      width: 100%;
      height: 220px;
      display: flex;
      align-items: center;
      padding-left: 6%;
      .t-head-l {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        img {
          width: 200px;
          margin-bottom: 5px;
        }
        .h-head-text {
          font-size: 48px;
          font-weight: bolder;
          color: #333;
        }
      }
      .t-head-r {
        width: 350px;
        padding-left: 30px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        img {
          width: 105px;
        }
        .t-head-rtext {
          font-size: 25px;
          color: #999;
          cursor: pointer;
        }
      }

    }
    .team-content {
      display: flex;
      flex-wrap: wrap;
      padding: 40px 0;
      .team-item {
        width: 20%;
        height: 450px;
        position: relative;
        // margin-right: 5%;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        &:nth-of-type(4n){
          margin-right: 0
        }
        img {
          width: 80%;
          height: 100%;
          object-fit: contain;
        }
        .team-img-info {
          height: 85px;
          width: 80%;
          position: absolute;
          bottom: 0;
          left: 10%;
          background-color: #068043;
          color: #fff;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          .ingo-name {
            font-weight: bold;
            font-size: 24px;
          }
          .info-dw {
            font-size: 18px;
            padding-top: 5px;
          }
        }
      }
    }
    .team-page {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      :deep(.el-pagination) {
        button, li {
          background-color: transparent;
          width: 80px;
          height: 60px;
          border-radius: 0;
          color: #666;
          font-size: 26px;
          font-weight: normal;
          &.is-active {
            color: #068043;
          }
        }
      }
    }
  }
  .zyrz {
    margin-top: 20px;
    .t-head-l {
      img {
        // height: 50px;
        // object-fit: contain;
        width: 80px !important
      }
    }
    .zyrz-content {
      padding: 30px 0;
      display: flex;
      justify-content: space-between;
      .zyrz-item {
        border-radius: 30px;
        box-shadow: 1px 1px 20px 2px #eae1e1;
        flex: 1;
        height: 540px;
        background: #fff;
        margin-right: 30px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        // justify-content: space-evenly;
        &:last-child {
          margin-right: 0;
        }
        .item-info {
          border-bottom: 1px solid #999;
          padding: 20px 0;
          color: #999;
          .sitem-t {
            font-weight: bolder;
            font-size: 24px;
            color: #000;
            margin-bottom: 10px;
          }
          .sitem-b {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 18px;
          }
        }
      }
    }
  }
  .zyfc {
    .zyfc-content {
      padding: 30px 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .marquee-container {
        position: relative;
        width: 100%;
        height: 455px;
        overflow: hidden;
        border-radius: 10px;
        .marquee-wrapper {
          display: flex;
          height: 100%;
          gap: 20px;
          padding: 0 20px;
        }
      }
      .zyfc-item {
        height: 100%;
        width: 600px;
        flex-shrink: 0;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        &:hover {
          transform: translateY(-5px);
        }
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          background-color: #fff;
        }
        .zyfc-info {
          position: absolute;
          bottom: 0;
          left: 0;
          height: 60px;
          width: 100%;
          background-color: #068043;
          color: #fff;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 18px;
          font-weight: bold;
        }
      }
    }
  }
}
</style>
<style>
  .popper{
    background: #e7ebea !important;
    width: 420px !important;
    box-sizing: border-box;
    min-height: 300px !important;
    border-radius: 20px !important;
    cursor: pointer;
    .pop-content {
      img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        border-radius: 10px;
      }
      .tit {
        font-weight: bold;
        color: #000;
        font-size: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .tit-l {
          flex:1;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space:nowrap
        }
        .tit-r {
          width: 65px;
          height: 30px;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #fff;
          background-color: #2fa962;
          font-weight: normal;
          font-size: 14px;
          border-radius: 14px;
        }

      }
      .tit-text {
        font-size: 14px;
        line-height: 28px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space:nowrap;
        width: 100%;
      }
      .tit-texts {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 40px;

      }
    }
  }
</style>